package net.mengkai.activiti7.deployer.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.security.core.GrantedAuthority;

public class SysGroup implements GrantedAuthority {

    private String name;

    public SysGroup(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @JsonIgnore
    @Override
    public String getAuthority() {
        return "GROUP_" + this.name;
    }
}
